]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Set calendar event source
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Feb 2018 13:03:18 +0000 (14:03 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Feb 2018 13:30:52 +0000 (14:30 +0100)
Ever since commit e9e30138bd6 (2011!), the calendar only initialized
the header at construction time. Set an event source to trigger an
update of the content area, which is what the test is mainly intended
for.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38

tests/interactive/calendar.js

index f2a70bb72f8b9f0d3d6b6982b2e578877290bfbd..fa7e4a6809364e561c93c14d1dd3ffa6f0b0caf0 100644 (file)
@@ -23,6 +23,7 @@ function test() {
              { expand: true,
                x_fill: false, x_align: St.Align.MIDDLE,
                y_fill: false, y_align: St.Align.START });
+    calendar.setEventSource(new Calendar.EmptyEventSource());
 
     UI.main(stage);
 }